package com.terran4j.demo.api2doc;

import com.terran4j.commons.api2doc.annotations.ApiComment;

import java.util.Date;

public class User {

    @ApiComment(value = "用户ID", sample = "1")
    private Long id;

    @ApiComment(value = "用户名称", sample = "张三")
    private String name;

    @ApiComment(value = "用户注册时间")
    private Date registTime = new Date();

    public User(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }
}
